﻿<Window x:Class="StockManagement.Views.NewVendor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add New Vendor" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Label Grid.Column="0" Grid.Row="0" Margin="5">First Name</Label>
        <TextBox Grid.Column="1" Grid.Row="0"  Margin="5" Text="{Binding Path=FirstName}"></TextBox>

        <Label Grid.Column="0" Grid.Row="1"  Margin="5">Last Name</Label>
        <TextBox Grid.Column="1" Grid.Row="1"  Margin="5" Text="{Binding Path=LastName}"></TextBox>

        <StackPanel Grid.Column="1" Grid.Row="2" Orientation="Horizontal"  Margin="5">
            <Button IsDefault="True" Content="OK" Name="btnOK"  Click="btnOK_Click"></Button>
            <Button IsCancel="True" Name="btnCancel" Content="Cancel"></Button>
        </StackPanel>
    </Grid>
</Window>
